package org.jeecg.modules.htxincailiao.order.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ht_order_library
 * @Author: jeecg-boot
 * @Date:   2022-01-05 10:21:33
 * @Version: V1.0
 */
@Data
@TableName("ht_order_library")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ht_order_library对象", description="ht_order_library")
public class HTOrderLibrary implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**接受资料邮箱*/
	@Excel(name = "接受资料邮箱", width = 15)
    @ApiModelProperty(value = "接受资料邮箱")
    private String receivedArchivesEmail;
	/**订单状态：0-待支付、1-待发货、2-待收货、3-已完成 、4-已取消*/
	@Excel(name = "订单状态：0-待支付、1-待发货、2-待收货、3-已完成 、4-已取消", width = 15)
    @ApiModelProperty(value = "订单状态：0-待支付、1-待发货、2-待收货、3-已完成 、4-已取消")
    private Integer orderStatus;
	/**订单ID*/
	@Excel(name = "订单ID", width = 15)
    @ApiModelProperty(value = "订单ID")
    private String orderId;
	/**买家ID*/
	@Excel(name = "买家ID", width = 15)
    @ApiModelProperty(value = "买家ID")
    private String buyerId;
	/**资料ID*/
	@Excel(name = "资料ID", width = 15)
    @ApiModelProperty(value = "资料ID")
    private String libraryId;
	/**企业ID*/
    @Excel(name = "企业ID", width = 15, dictTable = "ht_merchant", dicText = "enterprise_name", dicCode = "id")
    @Dict(dictTable = "ht_merchant", dicText = "enterprise_name", dicCode = "id")
    @ApiModelProperty(value = "企业ID")
    private String shopId;
	/**下单时主图*/
	@Excel(name = "下单时主图", width = 15)
    @ApiModelProperty(value = "下单时主图")
    private String cover;
	/**店铺名*/
	@Excel(name = "店铺名", width = 15)
    @ApiModelProperty(value = "店铺名")
    private String shopName;
	/**预览文件URL*/
	@Excel(name = "预览文件URL", width = 15)
    @ApiModelProperty(value = "预览文件URL")
    private String previewArchiveUrl;
	/**资料文件URL*/
	@Excel(name = "资料文件URL", width = 15)
    @ApiModelProperty(value = "资料文件URL")
    private String archiveUrl;
	/**资料名称*/
	@Excel(name = "资料名称", width = 15)
    @ApiModelProperty(value = "资料名称")
    private String archiveName;
	/**下单时商品价格*/
	@Excel(name = "下单时商品价格", width = 15)
    @ApiModelProperty(value = "下单时商品价格")
    private BigDecimal retailPrice;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private Integer quantity;
	/**逻辑删除: 0-未删除、1-删除*/
	@Excel(name = "逻辑删除: 0-未删除、1-删除", width = 15)
    @ApiModelProperty(value = "逻辑删除: 0-未删除、1-删除")
    private Integer isDeleted;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
